package com.project.service.impl;

import com.project.bean.CountBean;
import com.project.mapper.IProductMapper;
import com.project.service.ICountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
import java.util.List;

/**
 * 销售统计
 */
@Service
@Transactional
public class CountServiceImpl implements ICountService {
    @Autowired
    private IProductMapper productMapper;
    @Override
    public List<CountBean> countSell(LocalDate startDate, LocalDate endDate) {
        return productMapper.countSell(startDate,endDate);
    }
}
